package net.fltx.taskmgr.entity;

import javafx.beans.property.SimpleStringProperty;

public class ProcTreeTableViewEntity {
    public int parent;
    private SimpleStringProperty pid=new SimpleStringProperty(this,"pid");
    private SimpleStringProperty name=new SimpleStringProperty(this,"name");
    private SimpleStringProperty memory=new SimpleStringProperty(this,"memory");
    private SimpleStringProperty cpu=new SimpleStringProperty(this,"cpu");

    public ProcTreeTableViewEntity(){}

    public ProcTreeTableViewEntity(int pid, String name, int memory, int cpu) {
        this.pid.set(String.valueOf(pid));
        this.name.set( name);
        this.memory.set(String.valueOf( memory));
        this.cpu.set(String.valueOf(cpu));
    }

    public String getPid() {
        return pid.get();
    }

    public SimpleStringProperty pidProperty() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid.set(pid);
    }

    public String getName() {
        return name.get();
    }

    public SimpleStringProperty nameProperty() {
        return name;
    }

    public void setName(String name) {
        this.name.set(name);
    }


    public String getMemory() {
        return memory.get();
    }

    public SimpleStringProperty memoryProperty() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory.set(memory);
    }

    public String getCpu() {
        return cpu.get();
    }

    public SimpleStringProperty cpuProperty() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu.set(cpu);
    }
}
